/*
 transfer data by property , signal, slots
*/

#include "MyIterator.h"
//-------------------------------------------
MyIterator::MyIterator(QObject *parent)
    : QObject(parent),
      m_MyInt(0),
      m_MyDouble(50)
{
}
//-------------------------------------------
double MyIterator::MyDouble() const
{
    return m_MyDouble;
}
//-------------------------------------------
int MyIterator::MyInt() const
{
    return m_MyInt;
}
//-------------------------------------------
void MyIterator::SetMyDouble(double iValue)
{
    if (m_MyDouble != iValue)
    {
        m_MyDouble = iValue;
        emit sigMyDouble();
    }
}
//-------------------------------------------
void MyIterator::SetMyInt(int iValue)
{
    if (m_MyInt != iValue)
    {
        m_MyInt = iValue;
        emit sigMyInt();
    }
}
